package com.easy.frame.message;

import com.easy.frame.message.msg.IMessage;

/**
 * @author tp
 */
public class MessageFactory {

    public IMessage create(Class<? extends IMessage> clazz) {
        try {
            if (null != clazz) {
                return clazz.newInstance();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
